#ifndef __USER_CLIENT_CTX_HPP__
#define __USER_CLIENT_CTX_HPP__

#include "winux.hpp"
#include "eiennet.hpp"
#include "user.hpp"
#include "../logger.hpp"

class UserClientCtx : public eiennet::ws::WsHttpClientCtx
{
public:
    using WsHttpClientCtx::WsHttpClientCtx;
    User user;

    UserClientCtx(winux::uint64 clientId, winux::String clientEpStr, winux::SharedPointer<eiennet::ip::tcp::Socket> clientSockPtr)
        : eiennet::ws::WsHttpClientCtx(clientId, clientEpStr, clientSockPtr),
          user(this)
    {
    }
};

#endif //__USER_CLIENT_CTX_HPP__
